package com.tsdp.mapper;

import com.tsdp.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 范大晨
 * @since 2022-11-9
 */

@Mapper
public interface UserMapper extends BaseMapper<User> {

//    @Select("select * from tb_user where id in #{ids} order by field id,#{strIds}")
    List<User> selectListByIds(@Param("ids") List<Long> ids, @Param("strIds") String strIds);

}
